module.exports = {
  // publicPath: './',
  outputDir: "one-key",
  // 关闭.map
  productionSourceMap: false,
  // 暂时关闭lint
  // lintOnSave: false,

  css: {
    loaderOptions: {
      sass: {
        data: `@import "@/config/styles/variables.scss";`
      }
    }
  },

  // 代理
  devServer: {
    proxy: {
      "/root": {
        pathRewrite: {
          "^/root": "/"
        },
        target: 'http://172.16.101.45:8983'
      },
      "/token": {
        pathRewrite: {
          "^/token": "/"
        },
        target: 'http://172.16.101.45:8984'
      }
    }
  }
};